var link=0;
function  addLinkman(){
    link++;
    var linkForm = '<form id="LinkmanForm'+link+'"  class="LinkmanForm" action="" method="post">'+
        '		<table id="addLinkman" class="table table-bordered">'+
        '			<tr style="background-color: darkgrey;">'+
        '				<td colspan="4" style="color: wheat;">'+
        '					联系人基本资料'+
        '					<input type="hidden" class="contactId" name="id" value=""/>'+
        '					<button id="deleteLinkmanForm'+link+'" class="delete btn btn-warning" type="button">删除</button><button id="saveLinkmanForm'+link+'" class="save btn btn-info" type="button">保存</button></td>'+
        '			</tr>'+
        '			<tr>'+
        '				<td>姓名</td>'+
        '				<td><input type="text" name="name" class="table-input" />'+
        '				</td>'+
        '				<td>关系</td>'+
        '				<td>'+
        '					<select name="relation" class="uniform-multiselect">'+
        '						<option value="1">女儿</option>'+
        '						<option value="2">儿子</option>'+
        '						<option value="3">姐姐</option>'+
        '						<option value="4">妹妹</option>'+
        '						<option value="5">哥哥</option>'+
        '						<option value="6">弟弟</option>'+
        '						<option value="7">其他</option>'+
        '					</select>'+
        '				</td>'+
        '			</tr>'+
        '			<tr>'+
        '				<td>紧急联系人</td>'+
        '				<td>'+
        '					<label class="radio-inline"> <input type="radio" class="uniform" name="isUrgencyPerson" value="1"> 是 </label>'+
        '					<label class="radio-inline"> <input type="radio" class="uniform" name="isUrgencyPerson" value="0" > 否 </label>'+
        '				</td>'+
        '				<td>直系亲属联系人</td>'+
        '				<td>'+
        '					<label class="radio-inline"> <input type="radio" class="uniform" name="isFamilyMembers" value="1"> 是 </label>'+
        '					<label class="radio-inline"> <input type="radio" class="uniform" name="isFamilyMembers" value="0" > 否 </label>'+
        '				</td>'+
        '			</tr>'+
        '			<tr>'+
        '				<td>性别</td>'+
        '				<td>'+
        '					<label class="radio-inline"> <input type="radio" class="uniform" name="sex" value="1"> 男 </label>'+
        '					<label class="radio-inline"> <input type="radio" class="uniform" name="sex" value="0" > 女 </label>'+
        '				</td>'+
        '				<td>邮箱</td>'+
        '				<td><input type="text" class="table-input" name="email" size="50"/></td>'+
        '			</tr>'+
        '			<tr>'+
        '				<td>家庭住址</td>'+
        '				<td colspan="3"><input type="text" class="table-input" name="address" size="60"/></td>'+
        '			</tr>'+
        '			<tr>'+
        '				<td>电话</td>'+
        '				<td><input type="text" class="table-input" name="phone"  placeholder="电话号码" /></td>'+
        '				<td>手机</td>'+
        '				<td><input type="text" class="table-input" name="mobile"  placeholder="手机号码" /></td>'+
        '			</tr>'+
        '		</table>'+
        '	</form>';
    $('#addLinkman_btn').before(linkForm);
    if(link==4){
        $('#addLinkman_btn').hide();
    }
}
